package com.xuetang9.t9.xinhuaxia.beans;

import javax.persistence.*;

@Table(name = "social_publish")
public class SocialPublish {
    /**
     * 发布id号
     */
    @Id
    @Column(name = "p_id")
    private Integer pId;

    /**
     * 用户id号
     */
    @Column(name = "p_userId")
    private Integer pUserid;

    /**
     * 帖子标题
     */
    @Column(name = "p_workTitle")
    private String pWorktitle;

    /**
     * 模特名字
     */
    @Column(name = "p_modelname")
    private String pModelname;

    /**
     * 摄影师名字
     */
    @Column(name = "p_photographer")
    private String pPhotographer;

    /**
     * 帖子标签
     */
    @Column(name = "p_tag")
    private String pTag;

    /**
     * 帖子描述
     */
    @Column(name = "p_photodescribe")
    private String pPhotodescribe;

    /**
     * 点赞数
     */
    @Column(name = "p_like")
    private Integer pLike;

    /**
     * 获取发布id号
     *
     * @return p_id - 发布id号
     */
    public Integer getpId() {
        return pId;
    }

    /**
     * 设置发布id号
     *
     * @param pId 发布id号
     */
    public void setpId(Integer pId) {
        this.pId = pId;
    }

    /**
     * 获取用户id号
     *
     * @return p_userId - 用户id号
     */
    public Integer getpUserid() {
        return pUserid;
    }

    /**
     * 设置用户id号
     *
     * @param pUserid 用户id号
     */
    public void setpUserid(Integer pUserid) {
        this.pUserid = pUserid;
    }

    /**
     * 获取帖子标题
     *
     * @return p_workTitle - 帖子标题
     */
    public String getpWorktitle() {
        return pWorktitle;
    }

    /**
     * 设置帖子标题
     *
     * @param pWorktitle 帖子标题
     */
    public void setpWorktitle(String pWorktitle) {
        this.pWorktitle = pWorktitle;
    }

    /**
     * 获取模特名字
     *
     * @return p_modelname - 模特名字
     */
    public String getpModelname() {
        return pModelname;
    }

    /**
     * 设置模特名字
     *
     * @param pModelname 模特名字
     */
    public void setpModelname(String pModelname) {
        this.pModelname = pModelname;
    }

    /**
     * 获取摄影师名字
     *
     * @return p_photographer - 摄影师名字
     */
    public String getpPhotographer() {
        return pPhotographer;
    }

    /**
     * 设置摄影师名字
     *
     * @param pPhotographer 摄影师名字
     */
    public void setpPhotographer(String pPhotographer) {
        this.pPhotographer = pPhotographer;
    }

    /**
     * 获取帖子标签
     *
     * @return p_tag - 帖子标签
     */
    public String getpTag() {
        return pTag;
    }

    /**
     * 设置帖子标签
     *
     * @param pTag 帖子标签
     */
    public void setpTag(String pTag) {
        this.pTag = pTag;
    }

    /**
     * 获取帖子描述
     *
     * @return p_photodescribe - 帖子描述
     */
    public String getpPhotodescribe() {
        return pPhotodescribe;
    }

    /**
     * 设置帖子描述
     *
     * @param pPhotodescribe 帖子描述
     */
    public void setpPhotodescribe(String pPhotodescribe) {
        this.pPhotodescribe = pPhotodescribe;
    }

    /**
     * 获取点赞数
     *
     * @return p_like - 点赞数
     */
    public Integer getpLike() {
        return pLike;
    }

    /**
     * 设置点赞数
     *
     * @param pLike 点赞数
     */
    public void setpLike(Integer pLike) {
        this.pLike = pLike;
    }

    @Override
    public String toString() {
        return "SocialPublish{" +
                "pId=" + pId +
                ", pUserid=" + pUserid +
                ", pWorktitle='" + pWorktitle + '\'' +
                ", pModelname='" + pModelname + '\'' +
                ", pPhotographer='" + pPhotographer + '\'' +
                ", pTag='" + pTag + '\'' +
                ", pPhotodescribe='" + pPhotodescribe + '\'' +
                ", pLike=" + pLike +
                '}';
    }
}